    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">
        <meta name="cspretty-param" content="_cspretty-backend">
<meta name="cspretty-token" content="I03WwLN2mLHVtzrMXeKVebrgRrlCRZ1e5ScC2pcCdwB3OazwhRjK5biFf5Q0qdIY4o4yjwZ33jGNUzKX000YcQ==">
        <title>PrettyFrame</title>

        {include file="public/meta"/}
    </head>
    <body class="hold-transition skin-blue sidebar-mini fixed">
        <div class="wrapper">
        <!-- 头部区域 -->

<header class="main-header">
    <!-- Logo区域 -->
    <a href="/backend/" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini">PF</span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg">PrettyFrame</span>
    </a>
    <nav class="navbar navbar-static-top">
        <!-- Sidebar toggle button-->
        <div class="navbar-custom-menu pull-left">
            <ul class="nav navbar-nav">
                <li class="dropdown notifications-menu prettyTopMenu">
                    <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                        <span class="sr-only">切换导航</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                </li>

                <!-- Notifications: style can be found in dropdown.less -->
                <?php if(!empty($privilege)){ foreach($privilege as $k=>$v){?>
                <li class="dropdown notifications-menu prettyTopMenu hide " data-type="<?=$v['id']?>" data-is_addon="0">
                        <a class="dropdown-toggle">
                            <i class="<?=$v['pri_icon']==''?'fa fa-home':$v['pri_icon']?>"></i> <?=$v['pri_name']?>
                        </a>
                </li>
                <?php }} ?>

            </ul>
        </div>
        <div class="navbar-custom-menu top-right">
            <ul class="nav navbar-nav">
                <!-- 自动隐藏菜单 -->
                <li class="dropdown tasks-menu hide-menu hide">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
                        <i class="icon ion-navicon-round"></i>
                        <i class="icon ion-arrow-down-b"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li>
                            <!-- inner menu: contains the actual data -->
                            <ul class="menu">

                            </ul>
                        </li>
                    </ul>
                </li>

<li class="dropdown notifications-menu pretty-notif">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">
        <i class="fa fa-bell-o"></i>
        <span class="label label-warning">0</span>
    </a>
    <ul class="dropdown-menu">
        <li class="header">你有 0 条未读消息</li>
        <li class="body">
            <!-- inner menu: contains the actual data -->
            <ul class="menu">
                                                    <li class="text-center">
                        <a href="javascript:void (0);" style="color: #ccc">
                            暂无消息...
                        </a>
                    </li>
                            </ul>
        </li>
        <!-- 验证权限 -->
        <li class="footer"><a href="/backend/notify/announce" class="J_menuItem" onclick="$('body').click();">查看消息</a></li>
    </ul>
</li>                <!-- User Account: style can be found in dropdown.less -->
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img class="user-image head_portrait" src="__STATIC__/admin/picture/profile_small.jpg"/>
                        <span class="hidden-xs"><?=$admin['full_name']?$admin['full_name']:$admin['account']?></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header">
                            <img class="img-circle head_portrait" src="__STATIC__/admin/picture/profile_small.jpg"/>
                            <p>
                                <?=$admin['full_name']?$admin['full_name']:$admin['account']?>                                <small><?=$admin['last_ip']?></small>
                            </p>
                        </li>
                        <!-- Menu Body -->
                        <li class="user-body">
                            <div class="row">
                                <div class="col-xs-4 text-center">
                                    <a href="/backend/base/member/personal" class="J_menuItem" onclick="$('body').click();">个人信息</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="<?=url('admin/manage/admin_info')?>" class="J_menuItem" onclick="$('body').click();">修改密码</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="/backend/main/clear-cache" class="J_menuItem" onclick="$('body').click();">清理缓存</a>
                                </div>
                            </div>
                            <!-- /.row -->
                        </li>
                    </ul>
                </li>
                <!-- Control Sidebar Toggle Button -->
                <li>
                    <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                </li>
                <li id="logout" class="hide">
                    <a href="<?=url('admin/login/logout')?>" data-method="post"><i class="fa fa fa-sign-out"></i>退出</a>
                </li>
            </ul>
        </div>
    </nav>
</header>


<!-- 左侧菜单栏 -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img class="img-circle head_portrait" src="__STATIC__/admin/picture/profile_small.jpg"/>
            </div>
            <div class="pull-left info">
                <p><?=$admin['full_name']?$admin['full_name']:$admin['account']?></p>
                <a href="#">
                    <i class="fa fa-circle text-success"></i>
                    <?=$admin['id']==1?'超级管理员':$admin->roleDetail['role_name']?>
                </a>
            </div>
        </div>
        <!-- 侧边菜单 -->
        <ul class="sidebar-menu" data-widget="tree">

            <?php if(!empty($privilege)){ foreach($privilege as $k=>$v){?>
            <?php if(!empty($v['children'])){ foreach($v['children'] as $k0=>$v0){?>
            <li class="treeview hide prettyLeftMenu  prettyLeftMenu-<?=$v0['parent_id']?>">
                <a href="#">
                    <i class="<?=$v0['pri_icon']==''?'fa fa-circle-o':$v0['pri_icon']?>"></i> <span><?=$v0['pri_name']?></span>
                     <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>

                <ul class="treeview-menu">

                    <?php if(!empty($v0['children'])){ foreach($v0['children'] as $k1=>$v1){?>
                    <li class="treeview hide prettyLeftMenu  prettyLeftMenu-<?=$v0['parent_id']?>">
                        <?php
                            if(empty($v1['children'])){
                                $str = 'class="J_menuItem" href="'.url($v1['module_name'].'/'.$v1['controller_name'].'/'.$v1['action_name']).'"';
                            }else{
                                $str = 'href="#"';
                            }
                        ?>
                        <a <?=$str?>>
                            <i class="fa  pretty-i"></i>
                            <span><?=$v1['pri_name']?></span>

                            <?php if(!empty($v1['children'])){?>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                            <?php }?>
                        </a>

                        <?php if(!empty($v1['children'])){?>
                        <ul class="treeview-menu">
                            <?php foreach($v1['children'] as $k2=>$v2){?>
                            <li class="treeview prettyLeftMenu  prettyLeftMenu-<?=$v0['parent_id']?>">
                                <a class="J_menuItem" href="<?=url($v2['module_name'].'/'.$v2['controller_name'].'/'.$v2['action_name'])?>" >
                                    <i class="fa  pretty-i"></i>
                                    <span><?=$v2['pri_name']?></span>
                                </a>
                            </li>
                            <?php }?>
                        </ul>
                        <?php }?>
                    </li>
                    <?php }}?>

                </ul>

            </li>

            <?php }}?>
            <?php }}?>

            <!--
                <li class="header" data-rel="external">相关链接</li>
                <li><a href="http://www.rageframe.com" target="_blank"><i class="fa fa-bookmark text-red"></i> <span>系统官网</span></a></li>

                <li><a href="https://github.com/jianyan74/rageframe2/blob/master/docs/guide-zh-CN/README.md" target="_blank"><i class="fa fa-list text-yellow"></i> <span>在线文档</span></a></li>

                <li><a href="https://jq.qq.com/?_wv=1027&k=5yvRLd7" target="_blank"><i class="fa fa-qq text-aqua"></i> <span>QQ交流群</span></a>
                </li>
             -->
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>        <!-- 主体内容区域 -->

<div class="content-wrapper">
    <div class="content-tabs hide">
        <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-angle-double-left"></i></button>
        <nav class="page-tabs J_menuTabs" id="prettytags">
            <div class="page-tabs-content">
                <a href="javascript:void (0);" class="active J_menuTab" data-id="system_index.html" id="prettytagsIndexLink">首页</a>
                <!--默认主页需在对应的选项卡a元素上添加data-id="默认主页的url"-->
            </div>
        </nav>
        <button class="roll-nav roll-right J_tabRight"><i class="fa fa-angle-double-right"></i></button>
        <div class="btn-group roll-nav roll-right">
            <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作</button>
            <ul role="menu" class="dropdown-menu dropdown-menu-right">
                <li class="J_tabShowActive"><a>定位当前选项卡</a></li>
                <li class="divider"></li>
                <li class="J_tabCloseAll"><a>关闭全部选项卡</a></li>
                <li class="J_tabCloseOther"><a>关闭其他选项卡</a></li>
            </ul>
        </div>
        <a href="<?=url('admin/login/logout')?>" data-method="post" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>

    </div>
    <div class="J_mainContent" id="content-main">
        <!--默认主页需在对应的页面显示iframe元素上添加name="iframe0"和data-id="默认主页的url"-->
        <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{:url('admin/index/systemIndex')}" frameborder="0" data-id="/backend/main/system" seamless></iframe>
    </div>
</div>        <!-- 底部区域 -->
        <footer class="main-footer">
            <div class="pull-left hidden-xs">
                当前版本：1.0.1&nbsp;&nbsp;&nbsp;&nbsp;
            </div>
            © 2019 - 2020 PrettyFrame All Rights Reserved.
        </footer>
        <!-- 布局样式设置 -->
        <aside class="control-sidebar control-sidebar-dark">
            <div class="tab-content">
                <!-- Home tab content -->
                <div class="tab-pane" id="control-sidebar-home-tab"></div>
            </div>
        </aside>
        <!-- 右侧区域 -->
        <div class="control-sidebar-bg"></div>
    </div>

{include file="public/footer-script"/}


<script>
    //toastr.error("错误样式");

</script>

    </body>
    </html>
